package com.id.coinscleaner.ram

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.lifecycleScope
import com.id.coinscleaner.R
import com.id.coinscleaner.common.ViewBindingFragment
import com.id.coinscleaner.databinding.FragmentRamBoostBinding
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch

class RamBoostFragment : ViewBindingFragment<FragmentRamBoostBinding>() {
    override fun initView() {
        super.initView()
        binding.backIV.setOnClickListener {
            onBackPressed()
        }
        lifecycleScope.launch {
            delay(3000)
            navigate(R.id.action_ramBoostFragment_to_finishedFragment)
        }
    }
}